d7bc17258c24b925557121420a1bd14d2f5ce2b3,caliper/src/test/java/com/google/caliper/runner/BadUserCodeTest.java,BadUserCodeTest,testNonDeterministicAllocation_noTrackAllocations,#,129
Before Change
public void testNonDeterministicAllocation_noTrackAllocations() throws Exception {
try {
runAllocationWorker(NonDeterministicAllocationBenchmark.class, false);
fail();
} catch (ProxyWorkerException expected) {
String message = "Your benchmark appears to have non-deterministic allocation behavior";
After Change
public void testNonDeterministicAllocation_noTrackAllocations() throws Exception {
try {
runner.forBenchmark(NonDeterministicAllocationBenchmark.class)
.instrument("allocation")
.options("-Cinstrument.allocation.options.trackAllocations=" + false)
.run();
fail();
} catch (ProxyWorkerException expected) {
String message = "Your benchmark appears to have non-deterministic allocation behavior";